package org.pc2r.protocole.message;

import org.pc2r.protocole.EnumRequest;
import org.pc2r.protocole.RequestBuilder;

public class ShipMessage extends Message {

  private int size;

  public ShipMessage(int size) {
    super(EnumRequest.SHIP);
    this.size = size;
  }

  public void setSize(int i) {
    size = i;
  }
  
  public int getSize() {
    return size;
  }

  @Override
  public String toString() {
    StringBuilder bu = new StringBuilder();
    bu.append(getType()).append(RequestBuilder.SEPARATOR);
    bu.append(size).append(RequestBuilder.SEPARATOR);
    bu.append(RequestBuilder.END);
    return bu.toString();
  }

}
